//
//  statusCell.swift
//  LEOweibo
//
//  Created by zz on 16/3/7.
//  Copyright © 2016年 zz. All rights reserved.
//

import UIKit
import SnapKit
class statusCell: UITableViewCell {

    //MARK:-  构造函数
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
       
        setupUI()
        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //MARK:- 私有控件
    private let originalView: UIView = StatusOriginalView()
    private let retweetedView: UIView = StatusRetweetedView()
    private let toolBar: UIView = StatusToolBar()
    
    
}

//MARK:- 界面设置
extension statusCell {
    
    private func setupUI() {
        
        contentView.addSubview(originalView)
        contentView.addSubview(retweetedView)
        contentView.addSubview(toolBar)
        
        originalView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentView)
            make.left.equalTo(contentView)
            make.right.equalTo(contentView)
            
            make.width.equalTo(100)
            
            make.bottom.equalTo(contentView)
        }
        
    }
}
